package com.qingcheng.controller.order;

import com.alibaba.dubbo.config.annotation.Reference;
import com.qingcheng.pojo.order.Ordercounts;
import com.qingcheng.service.order.OrdercountsService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/ordercounts")
public class OrderCountsController {
    @Reference
    private OrdercountsService ordercountsService;
    @GetMapping("/counts")
    public List<Ordercounts> counts(){
        return ordercountsService.findAll();
    }
}
